Skip to content

Conversation

pseudonom
Copy link
Contributor

I'm not certain exactly what the fixity declaration should be, but it seems that (..) should have one.

@paf31
Copy link
Contributor

paf31 commented Feb 18, 2015

How does this work with things like >>= and <$>? Those are my only real use cases where precedence seems important:

show <$> 1 .. 5
1 .. 5 >>= \n -> [n, n * 2]

should parse as

show <$> (1 .. 5)
(1 .. 5) >>= \n -> [n, n * 2]

I think it does, but could you please check

@pseudonom
Copy link
Contributor Author

Sure. I checked and adding the fixity declaration in the patch makes both of those work.

paf31 added a commit that referenced this pull request Feb 18, 2015
Added fixity declaration to (..) (range operator)
@paf31 paf31 merged commit df6edb7 into purescript:master Feb 18, 2015
@paf31
Copy link
Contributor

paf31 commented Feb 18, 2015

I tested core-tests and test-everything too, everything looks good. Thanks!

@pseudonom pseudonom deleted the patch-1 branch February 18, 2015 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants